




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/02/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfwaring.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfwaring.entity.YfWarning;
import com.application.yfwaring.struts.form.YfWarningForm;
import com.application.yfwaring.dao.YfWarningDAO;
 /**
 * 
 * Description:YfWarningService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 03/02/2012 
 * 
 */
public class YfWarningService extends BaseService
{
	private YfWarningDAO yfWarningDAO;

	public YfWarningDAO getYfWarningDAO() {
		return this.yfWarningDAO;
	}

	public void setYfWarningDAO(YfWarningDAO yfWarningDAO) {
		this.yfWarningDAO = yfWarningDAO;
	}
        

        public YfWarning getYfWarning(YfWarning yfWarning) {
		return (YfWarning) this.getBaseDao().queryByPk(yfWarning, yfWarning.getId());
	}
	
	public Integer getAllCountYfWarning(YfWarningForm yfWarningForm){
		return this.yfWarningDAO.getAllCountYfWarning(yfWarningForm);
	}
	
	public List<YfWarning> searchYfWarning(YfWarningForm yfWarningForm, PageBean pageBean) throws Exception {
		List<YfWarning> yfWarningList = (List) this.yfWarningDAO.searchYfWarning(yfWarningForm, pageBean);
		return yfWarningList;
	}
        
        public void deleteYfWarnings(YfWarningForm yfWarningForm){
	   this.yfWarningDAO.deleteYfWarnings(yfWarningForm);	 
	}
}
